package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.OperationLog
import com.sgcc.nfc.lock.domain.model.PagedList
import com.sgcc.nfc.lock.domain.repository.LogRepository
import javax.inject.Inject

class GetLogsUseCase @Inject constructor(
    private val repository: LogRepository
) {
    suspend operator fun invoke(
        page: Int,
        pageSize: Int,
        operationType: Int? = null,
        lockNfcId: String? = null,
        startTime: String? = null,
        endTime: String? = null
    ): NetworkResult<PagedList<OperationLog>> = repository.getLogs(page, pageSize, operationType, lockNfcId, startTime, endTime)
}
